package com.t.bricks.bussiness.db.entity.orderscomment;

import com.t.bricks.bussiness.db.entity.orderscomment.base.OrdersCommentBase;

/**
 * 订单评论'OrdersComment'表扩展实体类
 * 注意:可根据需要创建不同的多个扩展实体类,而不是把所有的扩展属性都集中到一个类中
 * @author HuangXinBian
 */
public class OrdersComment extends OrdersCommentBase {
	
	private static final long serialVersionUID = -1L;// 使用rmi时需修改

	/**
	 * 复制对象
	 * @param source 数据源
	 * @return OrdersComment
	 */
	public static OrdersComment copy(OrdersComment source) {
		if (null == source) {
			return null;
		}
		
		OrdersComment target = new OrdersComment();
		target.setuId(source.getuId());
		target.setsOrderId(source.getsOrderId());
		target.setsWaresId(source.getsWaresId());
		target.setsCustomerAliases(source.getsCustomerAliases());
		target.setsCustomerPhoto(source.getsCustomerPhoto());
		target.setiGrade(source.getiGrade());
		target.setsComment(source.getsComment());
		target.setsCommentImgs(source.getsCommentImgs());
		target.setsAuditId(source.getsAuditId());
		target.setsAudit(source.getsAudit());
		target.setdAuditDate(source.getdAuditDate());
		target.setsMemo(source.getsMemo());
		target.setsCreator(source.getsCreator());
		target.setdCreateDate(source.getdCreateDate());
		target.setsModifieder(source.getsModifieder());
		target.setdModifiedDate(source.getdModifiedDate());
		target.setiState(source.getiState());
		target.setiIndex(source.getiIndex());
		target.setiVersion(source.getiVersion());

		return target;
	}
	
	/**
	 * 克隆对象
	 * @return OrdersComment
	 */
	@Override
	public OrdersComment clone() {
		return copy(this);
	}
	
}
